import request from "@/axios"

export function getLotteryBg() {
    let url  = 'api/lottery/act'
    return request.get(url)
}

export function getLotteryCount(actId) {
    let url=`api/lottery/add?actId=${actId}`
    return request.get(url)
}

export function startLottery(actId) {
    let url =`api/lottery/start?actId=${actId}`
    return request.get(url)
}

export function getLotteryList(page) {
    let url = `api/lottery/recordList?page=${page}&limit=10`
    return request.get(url)
}